package com.qf.petmall.starter.square.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 广场发布的页面模块
 * </p>
 *
 * @author author
 * @since 2022-12-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("square")
@ApiModel(value="Square对象", description="广场发布的页面模块")
public class Square implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String headPortrait;

    private String name;

    private LocalDateTime time;

    private String text;

    @ApiModelProperty(value = "用户名")
    private Integer fabulous;

    @ApiModelProperty(value = "用户名")
    private String fabulousHidden;

    @ApiModelProperty(value = "用户名")
    private Integer comment;

    @ApiModelProperty(value = "用户名")
    private String commentHidden;

    @TableField("class")
    @JsonProperty("class")
    private String class1;

    @TableField(exist = false)
    private List<Imgurl> imgurls;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createtime;

    private String address;

    private boolean dianzan;

    private String pinglun;
}
